/*
 * Copyright 2009 Eat Local Food, LLC
 * Copyright (c) 2007 osCommerce (this file was written after
 * code review of osCommerce).
 *
 * This file is part of gwtCommerce.
 *
 * gwtCommerce is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * gwtCommerce is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with gwtCommerce.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.elf.gwt.common.client.model;

import com.google.gwt.json.client.JSONObject;

public class AdvancedSearchResultsMetaModel extends AbstractModel
{	
	protected int displayBuyNow;
	protected int displayImage;
	protected int displayManufacturer;
	protected int displayModel;
	protected int displayName;
	protected int displayPrice;
	protected int displayQuantity;
	protected int displayWeight;

	public AdvancedSearchResultsMetaModel(JSONObject jsonObject)
	{
		displayBuyNow = convertToInteger(jsonObject, "display_buy_now");
		displayImage = convertToInteger(jsonObject, "display_image");
		displayManufacturer = convertToInteger(jsonObject, "display_manufacturer");
		displayModel = convertToInteger(jsonObject, "display_model");
		displayName = convertToInteger(jsonObject, "display_name");
		displayPrice = convertToInteger(jsonObject, "display_price");
		displayQuantity = convertToInteger(jsonObject, "display_quantity");
		displayWeight = convertToInteger(jsonObject, "display_weight");
	}

	public int getDisplayBuyNow() {
		return displayBuyNow;
	}
	public int getDisplayImage() {
		return displayImage;
	}
	public int getDisplayManufacturer() {
		return displayManufacturer;
	}
	public int getDisplayModel() {
		return displayModel;
	}
	public int getDisplayName() {
		return displayName;
	}
	public int getDisplayPrice() {
		return displayPrice;
	}
	public int getDisplayQuantity() {
		return displayQuantity;
	}
	public int getDisplayWeight() {
		return displayWeight;
	}
}
